package com.jhs.boot.system.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.*;

/**
 * 节点IP匹配表单对象
 *
 * @author youlaitech
 * @since 2025-10-29 12:50
 */
@Getter
@Setter
@Schema(description = "节点IP匹配表单对象")
public class SysNodesDhcpForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "IP地址")
    @NotBlank(message = "IP地址不能为空")
    @Size(max=100, message="IP地址长度不能超过100个字符")
    private String ip;

    @Schema(description = "mac地址")
    @NotBlank(message = "mac地址不能为空")
    @Size(max=100, message="mac地址长度不能超过100个字符")
    private String mac;

    @Schema(description = "创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;


}
